<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        /* 块和行内元素转行内块元素 */
        
        div,
        a,
        span,
        strong {
            display: inline-block;
            width: 200px;
            height: 200px;
            background-color: cadetblue;
            text-align: center;
        }
    </style>
</head>

<body>
    <div>转行内块</div>
    <a href="#">链接</a>
    <span>spanspan</span>
    <strong>strongstong</strong>
</body>

</html>